package com.mxchip.livestarmobile.mobile.db.dao

import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import com.mxchip.livestarmobile.mobile.db.entity.CallLogWithContact

@Dao
interface CallLogWithContactDao {
@Transaction
@Query("SELECT * FROM CallLog WHERE user_id = (:uid) ORDER BY startTime DESC")
fun getCallLogWithContact(uid:String):LiveData<List<CallLogWithContact>>
}